<?php $image = $this->requestAction('/images/images/fetch/' . $id); 
$class= "embed-image embed-" . $size;
$div_pre = "";
$div_post = "";
if(!empty($align) and $align !== 0) {
	$div_pre = '<div class="object-' . $align . '">';
	$div_post = "</div>";
}
if($show_lightbox === 1) {
	echo $div_pre . $lightbox->img(null, $image['Image']['dir'] . DS . $image['Image']['filename'], array('title' => $image['Image']['title'], 'class'=>$class), array(), $size) . $div_post;
} else {
	echo $div_pre . $gershImage->resize($image['Image']['dir'] . DS . $image['Image']['filename'], $size, array('title'=>$image['Image']['title'], 'alt'=>$image['Image']['title'], 'class'=>$class)) . $div_post;
}
?>